package com.java.oop.bean;

public class User {

    private String name;

    private Integer age;

    public User() {
        System.out.println("user 的无惨构造函数");
    }

    public User(String name, Integer age) {
        System.out.println("user 的有参构造函数");
        this.name = name;
        this.age = age;
    }

    public void test(){
        System.out.println("我是user 的test方法");
    }
}
